package com.gagakuai.demo.aop;

import com.gagakuai.demo.aop.user.TestUse;
import com.gagakuai.demo.aop.user.TestUseImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-13 15:53
 */
public class Main {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfig.class);

        TestUse bean = context.getBean(TestUse.class);

        String s = bean.sayHello();

        System.out.println("真实类返回的："+s);


    }
}